package genericsPackage;

public class Test2 {
    public static void main(String[] args) {
        //掌握泛型类的定义和使用
        MyArrayList<String> list = new MyArrayList<>();
        list.add("java1");
        list.add("java2");
        String ele = list.get(1);
        System.out.println(ele);
    }
}
